function alert_error_pos(pos)
% alert_error_pos: Alert an error position and stop program
%
% SYNTAX:
%   alert_error_pos(pos)
%   Display an error message on wrong position and stop the program

%   Author: Hongbin Ma
%   Last updated: 2009-6-1 with MATLAB 6.5
%   Problems or suggestions? Email me: mathmhb[at]163.com

error('Error! MADS can only visualize 2D/3D dynamical game! Wrong P.pos: ',pos);
